<?php
/**
 * The Header for our theme.
 *
 * Displays all of the <head> section and everything up till <div id="main">
 *
 * @package WordPress
 * @subpackage boboboliu
 * @since boboboliu 1.0
 */
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<title><?php
/*
 * Print the <title> tag based on what is being viewed.
 */
global $page, $paged;

wp_title ( '|', true, 'right' );

// Add the blog name.
bloginfo ( 'name' );

// Add the blog description for the home/front page.
$site_description = get_bloginfo ( 'description', 'display' );
if ($site_description && (is_home () || is_front_page ()))
	echo " | $site_description";
	
	// Add a page number if necessary:
if ($paged >= 2 || $page >= 2)
	echo ' | ' . sprintf ( __ ( 'Page %s', 'twentyten' ), max ( $paged, $page ) );

?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="stylesheet" type="text/css" media="all"
	href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<script type="text/javascript"
	src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>
<?php
/*
 * We add some JavaScript to pages with the comment form to support sites with
 * threaded comments (when in use). if ( is_singular() && get_option(
 * 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' );
 */

	/* Always have wp_head() just before the closing </head>
	 * tag of your theme, or you will break many plugins, which
	 * generally use this hook to add elements to <head> such
	 * as styles, scripts, and meta tags.
	 */
	wp_head ();
?>
<?php if(is_home()) { ?>
<style>
#header,#header1 {
	background: #dfdfe1 url(<?php bloginfo('template_url')?>/images/banner.jpg) center top no-repeat;
}

#header,#header1 {
	min-width: 990px;
	height: 400px;
	position: relative;
} /*Banner Bg*/
#header1 {
	height: 61px;
	background: #121018;
}

#header .function_banner {
	width: 100%;
	height: 340px;
	overflow: hidden;
	position: absolute;
	top: 60px;
	left: 0px;
} /*Banner link*/
</style>
<?php } ?>
<script type="text/javascript"
	src="<?php bloginfo('template_url') ?>/js/all.js"></script>
<?php if(is_singular()) : ?><script type="text/javascript"
	src="<?php bloginfo('template_url') ?>/comments-ajax.js"></script><?php endif; ?>

<script>
function addCookie(){// 加入收藏夹
	if (document.all){
		window.external.addFavorite('<?php bloginfo( 'url' ); ?>', '<?php bloginfo( 'name' ); ?> - <?php bloginfo('description'); ?>');
	}else if (window.sidebar){
		window.sidebar.addPanel('<?php bloginfo( 'name' ); ?> - <?php bloginfo('description'); ?>', '<?php bloginfo( 'url' ); ?>', "");
	}
}
</script>
<script type="text/javascript">window.onerror=function(){return true;}</script>
<script type="text/javascript"
	src="http://cdc.tencent.com/data/js/microajax.js"></script>

<script type="text/javascript">function cdcAjax(url, callbackFunction){return microAjax(url, callbackFunction);}</script>

</head>

<body class="home blog">
	<!--Header-->

	<div id="header">

		<div id="top">

			<div id="nav">

				<a onfocus="this.blur()" href="<?php bloginfo( 'url' ); ?>"
					id="logo" title="<?php bloginfo( 'description' ); ?>"><cite><?php bloginfo( 'name' ); ?></cite></a>

				<div id="menu">

					<ul>

						<li id="on"><a href="<?php bloginfo( 'url' ); ?>">首页</a></li>

  <?php
		wp_list_pages ( 'title_li=&depth=-1' );
		/* ilover tips 要是想顶部显示分类目录的话，注释掉上面一行，取消注释下面一行 */
		//wp_list_categories('title_li=&depth=-1');
		?>

        <li id="rss"><a href="<?php bloginfo('rss2_url'); ?>"
							class="rss" target="_blank"><cite>RSS</cite></a>
							<ul>
								<li class="google"><a
									href="http://fusion.google.com/add?feedurl=http://www.paranfeed.com">谷歌阅读</a></li>
								<li class="youdao"><a
									href="http://reader.youdao.com/b.do?url=http://www.paranfeed.com">有道阅读</a></li>
								<li class="xianguo"><a
									href="http://www.xianguo.com/subscribe.php?url=http://www.paranfeed.com">鲜果</a></li>
								<li class="zhuaxia"><a
									href="http://www.zhuaxia.com/add_channel.php?url=http://www.paranfeed.com">抓虾</a></li>
								<li class="douban"><a
									href="http://9.douban.com/reader/subscribe?url=http://www.paranfeed.com">豆瓣九点</a></li>
								<li class="email"><a
									href="http://mail.qq.com/cgi-bin/feed?u=http://www.paranfeed.com">Email订阅</a></li>
							</ul> <a href="javascript:addCookie();" class="feed"><cite>分享</cite></a>
						</li>

					</ul>

				</div>

			</div>

		</div>

	</div>

	<!--Header End-->